home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 23.zip
/
BS1 part 23
/
Hisoft Basic v1.03 disk 2.adf
/
patterns.bas
< prev
next >
Wrap
BASIC Source File
|
1988-12-02
|
377b
|
19 lines
REM Your second HiSoft BASIC program
REM as described on page 11 of the manual
Patterns:
CLS
RANDOMIZE TIMER
REM Note that the manual says cx=32, erroneously
cx=320 : cy=100 : pi=3.14159265#
xs=cx/4+cx*RND/2 : ys=cy/4+cy*RND/2
COLOR INT(3*RND+1)
FOR k=0 TO 500 STEP 4*pi*RND+1
x=cx+xs*COS(k) : y=cy+ys*SIN(k)
IF k=0 THEN PSET(x,y) ELSE LINE -(x,y)
NEXT k
GOTO Patterns